
public abstract class Shape {
	
	//面积
	private double area;
	//周长
	private double per;
	//颜色
	private String color;
	
	
	//方法
	public abstract double calArea();
	public abstract double calPer();
	public abstract void showAll();
	
	
	
	//构造方法
	
	/**
	 * 默认构造方法
	 */
	public Shape() {}
	
	/**
	 * 颜色参数构造方法
	 * @param color
	 */
	public Shape(String color) {
		super();
		this.color = color;
	}
	
	//get&set
	public double getArea() {
		return area;
	}
	public void setArea(double area) {
		this.area = area;
	}
	public double getPer() {
		return per;
	}
	public void setPer(double per) {
		this.per = per;
	}
	public String getColor() {
		return color;
	}
	
	
	
}
